﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp8
{
    class Class1:Calculate

    {
        public Class1(int a, int b):base(a,b)
        {
           
        }




        public override void DisplayResult()
        {

            base.DisplayResult();
            Console.WriteLine("两数之和为：" + (A+B));
        }

    }
}
